﻿using System;
using System.ComponentModel.DataAnnotations;
using Furion.DatabaseAccessor;

namespace Cool.Core.Entities.System
{
    public class SysDept : DEntityBase
    {
        public SysDept()
        {
            CreatedTime = DateTimeOffset.Now.LocalDateTime;
            IsDeleted = false;
        }
        /// <summary>
        /// 父部门id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 祖级列表
        /// </summary>
        public string Ancestors { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Required, MaxLength(32)]
        public string DeptName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Leader { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 部门状态（0正常 1停用）
        /// </summary>
        public char Status { get; set; }

    }
}
